package com.csnf.service;

import com.csnf.entity.Student;

import java.util.List;

public interface StudentService {

    /**
     * 添加学生
     * @param student
     * @throws Exception
     */
    public Boolean addStudent(Student student) throws Exception;

    /**
     * 通过Id查询学生
     * @param id
     * @return
     * @throws Exception
     */
    public Student getStudentById(Integer id) throws Exception;

    List<Student> getAll();
}
